// ==UserScript==
// @name fontsetwenkaiMedium
// @author 曹开春
// @description 默认字体设置为霞鹜文楷等宽粗体
// @version 1.0.2
// @namespace caokaichun_LXGWWenKai
// @run-at document-body
// @updateURL https://gitee.com/caokaichun/ktools/raw/master/fontsetwenkaim.js
// @downloadURL https://gitee.com/caokaichun/ktools/raw/master/fontsetwenkaim.js
// @grant GM_addElement
// @match *://*/*
// ==/UserScript==

GM_addElement(document.getElementsByTagName('html')[0], 'style', {
  textContent: 'body,html body{font-family:"LXGW WenKai Mono Medium" !important;}'
});

const loc=window.location.host;
//for 1k
if(loc=='www.ithome.com'){
    GM_addElement(document.getElementsByTagName('body')[0], 'style', {
        textContent: '.content .fs2 p, .content .post_content p, .content .post_content h3{font-size:20px!important;line-height:36px!important;}ul.custom_reference li *, ul.small-size li *, ul.medium-size li *{font-size:inherit!important}.content .post_content blockquote{font-family:inherit!important}'
    });
}
if(loc=='www.guancha.cn' || loc=='user.guancha.cn'){
    GM_addElement(document.getElementsByTagName('body')[0], 'style', {
        textContent: '.left-main .content,.article-content .article-txt{font-size:20px!important;line-height:36px!important;}.gc-comment{font-family:inherit!important}.gc-comment .comment-list .list-body .comment-item .comment-txt{font-size:18px;line-height:1.8;}'
    });
}
if(loc=='news.mydrivers.com'){
    GM_addElement(document.getElementsByTagName('body')[0], 'style', {
        textContent: '.news_info{font-size:18px!important;line-height:1.8!important;}'
    });
}
if(loc=='yuanbao.tencent.com'){
    GM_addElement(document.getElementsByTagName('html')[0], 'style', {
        textContent: '.hyc-common-markdown-style{font:inherit!important;line-height:1.8!important;}.hyc-common-markdown-style h1, .hyc-common-markdown-style h2, .hyc-common-markdown-style h3, .hyc-common-markdown-style h4, .hyc-common-markdown-style h5, .hyc-common-markdown-style h6{font:inherit!important;font-weight:bold!important;font-size:24px!important;}'
    });
}

//霞鹜文楷 'LXGW WenKai' 霞鹜文楷粗体 'LXGW WenKai Medium' 霞鹜文楷等宽 'LXGW WenKai Mono'  霞鹜文楷等宽粗体 'LXGW WenKai Mono Medium'
//霞鹜文楷网址 https://github.com/lxgw/LxgwWenKai/releases
//思源黑体网址 https://github.com/adobe-fonts/source-han-sans/tree/release
//当前版本下载地址 https://github.com/adobe-fonts/source-han-sans/releases/download/2.004R/SourceHanSansCN.zip
//思源黑体"Source Han Sans CN"
//思源宋体 https://github.com/adobe-fonts/source-han-serif/tree/release
//思源宋体"Source Han Serif CN"
//思源等宽 https://github.com/adobe-fonts/source-han-mono/releases
//思源等宽"Source Han Mono"
//文泉驿等宽微米黑"WenQuanYi Micro Hei Mono"

//font-weight:300;